import 'package:build/build.dart';
import 'package:source_gen/source_gen.dart';
import 'enhanced_route_generator.dart';
import 'route_aggregator.dart';

Builder enhancedRouteGenerator(BuilderOptions options) {
  return LibraryBuilder(
    EnhancedRouteGenerator(),
    generatedExtension: '.route.json',
    formatOutput: (output) => output,
    header: '', // 关键修改：禁用所有注释生成
  );
}

Builder routeAggregator(BuilderOptions options) {
  return RouteAggregator();
}
